<template>
  <div>
    <div>
      <!-- <wash></wash> -->
       <!-- <div @click="tolive"> ceshi </div> -->
       <!-- <pollutant></pollutant> -->
       <!-- <trext></trext> -->
    </div>
  </div>
</template>
  <script setup>
  import store from '@/store'
import wash from './wash/index.vue'
import pollutant from './pollutant/index.vue'
import axios from "axios";
import trext from './components/trext.vue';
import { ref, reactive, onMounted } from "vue";
const dataListener = (data) => {
  const { SYS_ELE_ID, SYS_ELE_TYPE, SYS_CONFIG_NAME, SYS_ELE_INFO_JSON } =
    data.SYS_JSON;

  console.log(data.SYS_JSON, "----监听数据 SYS_JSON 2 type");
};
onMounted(() => {
  // store.dispatch('loginMediaService');

  if (window.microApp) {
    const { SYS_JSON } = microApp.getGlobalData();
    const { SYS_ELE_ID, SYS_ELE_TYPE, SYS_CONFIG_NAME, SYS_ELE_INFO_JSON } =
      SYS_JSON;
    console.log(
      SYS_ELE_ID,
      SYS_ELE_TYPE,
      SYS_CONFIG_NAME,
      SYS_ELE_INFO_JSON,
      "2024-8-13-one-wfgl"
    );
    // 监听方法
    microApp.addGlobalDataListener(dataListener);
  }
});
const tolive=()=>{
  window.location.href=`http://192.168.31.166:8081/cj-popupdetail/#/wash?id=${'1855940429439176704'}&name=${'大厂港区洗舱站'}`
}
</script>
  <style lang="scss" scoped>
</style>